package com.ws.webpacket.activity;

import android.app.Application;

import com.ws.webpacket.BuildConfig;
import com.ws.webpacket.util.HLog;
import com.ws.webpacket.view.WebClientOption;

import cn.jpush.android.api.JPushInterface;

public class MApplication extends Application {
    @Override
    public void onCreate () {
        super.onCreate();
        // 初始化 X5内核
        try{
            WebClientOption.initX5WebView(this);
        }catch(Exception e){
            HLog.I(e.toString());
        };

        // 初始化极光推送
        JPushInterface.init(this);
        JPushInterface.setDebugMode(BuildConfig.DEBUG);

    }
}
